<?php
include_once('_lib/class.quickskin.php');
include_once('_lib/class.app.php');

$pid = intval($_GET['pid']);
$pid = empty($pid)?0:$pid;
$search_name = $_POST["search_name"];


$newpage = new QuickSkin("tpl/template.html");

$newpage->addtpl("leftmenu" , $addtplPrefix."left.php?type=2");

$appuserNum = $appuser->get_AllUser_Num();
$appuserArr = $appuser->get_AllUser_SelectResult($pid , $search_name);

$lpid = floor($appuserNum/PER_NUM);
$ppid = ($pid-1<0)?0:($pid-1);
$npid = ($pid+1>$lpid)?$lpid:($pid+1);

$newpage->assign( 'gray' , "#DDDDDD");
$newpage->assign( 'firstpage' , 0);
$newpage->assign( 'prevpage' , $ppid);
$newpage->assign( 'nextpage' , $npid);
$newpage->assign( 'lastpage' , $lpid);

$newpage -> assign('appuser' , $appuserArr);

$newpage -> output();

?>